package com.wyz.dao;

import com.wyz.entity.UserInfo;

import java.util.List;

public class PageDao extends Dao<UserInfo> {
    public List<UserInfo> selectPage1(){
        String sql = "select * from user2 limit 0,5";
        return SelectMore(sql,UserInfo.class);
    }

    public List<UserInfo> selectPage(int page){
        String sql = "select * from user2 limit ?,5";
        return SelectMore(sql,UserInfo.class,page);
    }
}
